#define  _CRT_SECURE_NO_WARNINGS
#include "Queue.h"

void QueueTest()
{
	Queue q;
	InitQueue(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePush(&q, 8);

	//QueuePop(&q);
	//QueuePop(&q);
	//QueuePop(&q);
	//QueuePop(&q);
	//QueuePop(&q);
	QueuePop(&q);

	printf("back : %d\n", QueueBack(&q));
	printf("front : %d\n", QueueFront(&q));

	printf("%d\n", q.size);

	QueueDestroy(&q);

	
}


int main()
{
	QueueTest();
	return 0;
}